package com.team.olympic.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.team.olympic.mapper.ItemMapper;
import com.team.olympic.mapper.ItemVoMapper;
import com.team.olympic.pojo.Item;
import com.team.olympic.vo.ItemVo;

@Service
public class ItemService {
    @Autowired
    private ItemMapper itemMapper;
    @Autowired
    private ItemVoMapper itemVoMapper;

    public List<Item> findAllItems() {
        return itemMapper.findAllItems();
    }

    public List<ItemVo> findAllRecord() {
        return itemVoMapper.findAllRecord();
    }
}
